<?php

include_once("db_object.php");
include_once("root_object.php");

class product extends root_object
{
	public $id;
	private $category_list;
	private $attribut_list;

	function __construct( $id = NULL)
	{
		parent::__construct();
		
		if(!$id)
		{
			$this->id = $id;
			$this->load();
		}
	}
	//-----------------------------------------------------------------------
	function __destruct()
	{
		parent::__destruct();
	}
	//-----------------------------------------------------------------------
	function load()
	{
		$this->load_attributs();
	}
	//-----------------------------------------------------------------------
	function save(){}
	//-----------------------------------------------------------------------
	function erase(){}
	//-----------------------------------------------------------------------
	function load_attributs()
	{
	
		$DBObject->request( "SELECT attribut_id FROM product_attribut WHERE "
			."product_id = '" . $this->ID . "'");
		while( $line = pg_fetch_array( $result))
		{
			$AttributList = $line[name];
		}
	}
	//-----------------------------------------------------------------------
/*	function getValues()
	{
		$DBObject->request("SELECT value FROM product_attribut WHERE "
			."attribut_id = '" . $this->. "' AND "
			."product_id  = '" . $this-> . "';");
	} //*/
	//-----------------------------------------------------------------------

}

?>

